<?php namespace Summer\Hub;

use Backend\Classes\ListColumn;
use Lang;
use Model;

class ListVoiceField
{


    public static function render($value, ListColumn $column, Model $record)
    {
        if($value){
            return '
                <audio src="'.$value->path.'" controls="">
                    <div class="media-player-fallback panel-embedded">Your browser doesn\'t support HTML5 audio.</div>
                </audio>
            ';
        }
    }


}
